<?php
function srateMenu( $fp, $disk = "a", $orders = "" )
{
	global $t;
    $disks = "<select onchange=\"location.replace('op.php?op=admin&fp=".$fp.($fp=="srate8"?"&t=".$t:"")."&disk='+this.value)\">";
    $disks .= "<option value=a".( $disk == "a" ? " selected" : "" ).">A 盘</option>";
    $disks .= "<option value=b".( $disk == "b" ? " selected" : "" ).">B 盘</option>";
    $disks .= "<option value=c".( $disk == "c" ? " selected" : "" ).">C 盘</option>";
    $disks .= "<option value=d".( $disk == "d" ? " selected" : "" ).">D 盘</option>";
    $disks .= "</select>";
    $str = "";
    $title = "";
    if ( $fp == "srate1" )
    {
        $title = "特码相关";
        $str .= "特码相关";
    }
    else
    {
        $str .= "<a href=\"op.php?op=admin&fp=srate1&disk={$disk}\">特码相关</a>";
    }
    if ( $fp == "srate2" )
    {
        $title = "正码相关";
        $str .= "｜正码相关";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=srate2&disk={$disk}\">正码相关</a>";
    }
    if ( $fp == "srate20" )
    {
        $title = "正码过关";
        $str .= "｜正码过关";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=srate20&disk={$disk}\">正码过关</a>";
    }
    if ( $fp == "srate21" )
    {
        $title = "正码特";
        $str .= "｜正码特";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=srate21&disk={$disk}\">正码特</a>";
    }
    if ( $fp == "srate8" )
    {
        $title = "三/四全中";
        $str .= "｜三/四全中";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=srate8&disk={$disk}\">三/四全中</a>";
    }
    if ( $fp == "srate29" )
    {
        $title = "自选不中";
        $str .= "｜自选不中";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=srate29&disk={$disk}\">自选不中</a>";
    }
    if ( $fp == "srate3" )
    {
        $title = "一肖尾数";
        $str .= "｜一肖尾数";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=srate3&disk={$disk}\">一肖尾数</a>";
    }
    if ( $fp == "srate27" )
    {
        $title = "连肖";
        $str .= "｜连肖";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=srate27&disk={$disk}\">连肖</a>";
    }
    if ( $fp == "srate36" )
    {
        $title = "连尾";
        $str .= "｜连尾";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=srate36&disk={$disk}\">连尾</a>";
    }
    $str .= " <input type=\"button\" value=\"纪录\" onclick=\"javascript:showRateRecordPageBase(0,2);\"  />";
    echo "<script src=\"js_3d/showRateRecord.js\"></script>";
    echo title( $title." 基本赔率设定 --- {$orders}&#12288;{$disks}", $str, $orders != "" ? 730 : 680 );
    echo "<div id=\"divRateRecord\"></div>";
}

function rateMenu( $title, $fp, $id, $disk = "a", $orders = "", $paperopen )
{
	global $t;
    $disks = "<select onchange=\"location.replace('op.php?op=admin&fp=".$fp.($fp=="rate8"?"&t=".$t:"")."&id=".$id."&disk='+this.value)\">";
    $disks .= "<option value=a".( $disk == "a" ? " selected" : "" ).">A 盘</option>";
    $disks .= "<option value=b".( $disk == "b" ? " selected" : "" ).">B 盘</option>";
    $disks .= "<option value=c".( $disk == "c" ? " selected" : "" ).">C 盘</option>";
    $disks .= "<option value=d".( $disk == "d" ? " selected" : "" ).">D 盘</option>";
    $disks .= "</select>";
    $str = "";
    if ( $fp == "rate1" )
    {
        $str .= "特码相关";
    }
    else
    {
        $str .= "<a href=\"op.php?op=admin&fp=rate1&id={$id}&disk={$disk}\">特码相关</a>";
    }
    if ( $fp == "rate2" )
    {
        $str .= "｜正码相关";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=rate2&id={$id}&disk={$disk}\">正码相关</a>";
    }
    if ( $fp == "rate20" )
    {
        $str .= "｜正码过关";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=rate20&id={$id}&disk={$disk}\">正码过关</a>";
    }
    if ( $fp == "rate21" )
    {
        $str .= "｜正码特";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=rate21&id={$id}&disk={$disk}\">正码特</a>";
    }
    if ( $fp == "rate8" )
    {
        $str .= "｜三/四全中";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=rate8&id={$id}&disk={$disk}\">三/四全中</a>";
    }
    if ( $fp == "rate29" )
    {
        $str .= "｜自选不中";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=rate29&id={$id}&disk={$disk}\">自选不中</a>";
    }
    if ( $fp == "rate3" )
    {
        $str .= "｜一肖尾数";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=rate3&id={$id}&disk={$disk}\">一肖尾数</a>";
    }
    if ( $fp == "rate27" )
    {
        $str .= "｜连肖";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=rate27&id={$id}&disk={$disk}\">连肖</a>";
    }
    if ( $fp == "rate36" )
    {
        $str .= "｜连尾";
    }
    else
    {
        $str .= "｜<a href=\"op.php?op=admin&fp=rate36&id={$id}&disk={$disk}\">连尾</a>";
    }
    $str .= " <input type=\"button\" value=\"纪录\" onclick=\"javascript:showRateRecordPage(0,'".$paperopen."');\"  />";
    echo "<script src=\"js_3d/showRateRecord.js\"></script>";
    echo title( $title." {$orders} {$disks}", $str, $orders != "" ? 870 : 830 );
    echo "<div id=\"divRateRecord\"></div>";
}

?>